﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InputSubject.aspx.cs" Inherits="ExamAnalysis.Input.InputSubject" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" width="800">
        <tr>
            <td>
                <img src="../Images/main/button-subject.jpg" />
            </td>
            <td>
            <ext:Panel runat="server" Height="200" Title="录入科目信息" Width="500">
                <TopBar>
                    <ext:StatusBar StatusAlign="Left" runat="server">
                        <Items>
                            <ext:Label Text="上传文档：" runat="server"></ext:Label>
                            <ext:FileUploadField ID="FileField" runat="server" Width="300" Icon="Attach"   ButtonText="浏览"/>
                            <ext:Button ID="btnUpload" runat="server" Text="确定上传" OnDirectClick="btnUpload_DirectClick"></ext:Button>
                            <ext:ToolbarFill runat="server" />
                        </Items>
                    </ext:StatusBar>
                </TopBar>
                <Content>
                    <div style="padding:10px;">
                        <h3>上传说明：</h3>
                        <p>1.上传文件类型限制：Excel文档（.xls,.xlsx)</p>
                        <p>2.上传文件大小限制：5MB，若要上传大文件，请联系系统管理员</p>
                        <p>3.Excel文档格式要求：请下载并参考<a href="ExcelTemplate/科目信息录入模版.xlsx">科目信息录入模版.xlsx</a></p>
                    </div>
                </Content>
            </ext:Panel>
        </td>
        </tr>
    </table>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="ExamAnalysis.Model.ExamAnalysisDataContext" EntityTypeName="" 
        Select="new (FullName, AliasName, Type, SchoolID)" TableName="SchoolInfo">
    </asp:LinqDataSource>
</asp:Content>
